<?php

require_once './include/common.inc.php';
$page_title = 'jans2en furniture - Photo Gallery - Photo Gallery';
$menu_id = 3;
$postiondiv='<div class="position"><a href="index.php">首页</a> &gt; <span class="position">相片图库</span></div>';
$baner_img='<div class="bigtitle">相片图库</div>';

$photo_category_ary = array();
$sql = "SELECT `id`, `name`,`namezh` FROM `photo_category` ORDER BY `seq` ASC, `id` DESC";
$query = $db->query($sql);
while($rs = $db->fetch_array($query)) {
    $photo_category_ary[$rs['id']] = $rs['namezh'];
}

$select_str = '';
foreach ($photo_category_ary as $k=>$v) {
    $select_str .= '<option value="' . $k . '" >' . $v . '</option>';
}

// -------------- guideͼƬ start ----------------------------------------
$system_ary = getSystemValue("");
$content_pic = $system_ary['picture_other_photo_galleryen'];
$guide_pic = $system_ary['picture_photo_gallery'];
if (trim($guide_pic) == "" || !file_exists("./attachments/system/" . $guide_pic)) {
    $guide_pic = 'attachments/system/no_guide.gif';
} else {
    $guide_pic = 'attachments/system/' . $guide_pic;
}
if (trim($content_pic) == "" || !file_exists("attachments/system/" . $content_pic)) {
    $content_pic = 'attachments/system/no_content.gif';
} else {
    $content_pic = 'attachments/system/' . $content_pic;
}
// -------------- guideͼƬ end ------------------------------------------

	browseTracking(13,0,'Home > Photo Gallery');
//echo "<pre>";print_r($LEFT_MENU_ARY);exit;
require_once PrintEot('header');
require_once PrintEot('photo');
require_once PrintEot('footer');

?>